<?php
/*
 * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures
 * all the essential functionalities required for any enterprise.
 * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com
 *
 * OrangeHRM is free software; you can redistribute it and/or modify it under the terms of
 * the GNU General Public License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * OrangeHRM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with this program;
 * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA  02110-1301, USA
 */
$styleSheet = "orange";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript" src="../../scripts/archive.js"></script>
<script type="text/javascript" src="../../scripts/time.js"></script>

<link href="../../themes/<?php echo $styleSheet;?>/css/leave.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../themes/<?php echo $styleSheet;?>/scripts/style.js"></script>
<link href="../../themes/<?php echo $styleSheet;?>/css/style.css" rel="stylesheet" type="text/css"/>
<!--[if lte IE 6]>
<link href="../../themes/<?php echo $styleSheet; ?>/css/IE6_style.css" rel="stylesheet" type="text/css"/>
<![endif]-->
<!--[if IE]>
<link href="../../themes/<?php echo $styleSheet; ?>/css/IE_style.css" rel="stylesheet" type="text/css"/>
<![endif]-->
<script>

function nextPage() {
	i=document.frmListOfShifts.pageNO.value;
	i++;
	document.frmListOfShifts.pageNO.value=i;
	document.frmListOfShifts.submit();
}

function prevPage() {
	var i=document.frmListOfShifts.pageNO.value;
	i--;
	document.frmListOfShifts.pageNO.value=i;
	document.frmListOfShifts.submit();
}

function chgPage(pNO) {
	document.frmListOfShifts.pageNO.value=pNO;
	document.frmListOfShifts.submit();
}
</script>
</head>
<body class="yui-skin-sam">

<div class="outerbox">
    <div class="outerbox"><div class="top"><div class="left"></div><div class="right"></div><div class="middle"></div></div><div class="maincontent">
        <div class="mainHeading"><h2><font color="#ff0000">员工合同转正或到期</font> 提醒</h2></div>

    
   <div class="actionbar">
        <div class="actionbuttons">
          
    
                        
        </div>
        <div class="noresultsbar"></div>
        <div class="pagingbar">
		<?php
            $commonFunc = new CommonFunctions();
            $pageStr = $commonFunc->printPageLinks($records['Allcount'], $pageNO);
            $pageStr = preg_replace(array('/#first/', '/#previous/', '/#next/', '/#last/'), array($lang_empview_first, $lang_empview_previous, $lang_empview_next, $lang_empview_last), $pageStr);

            echo $pageStr;
        ?>
        </div>
    <br class="clear">
    </div>
    <br class="clear">

	<table cellspacing="0" cellpadding="0" class="data-table">
        <thead>
            <tr>
                <td scope="col">姓名</td>
                <td scope="col">员工编号</td>
                <td scope="col">合同开始日期</td>
                <td scope="col">合同到期日期</td>
                <td scope="col">合同类型</td>
            </tr>
        </thead>
        <tbody>
            <?php
            $reslut = $records['list'];
            if(is_array($reslut) && count($reslut)>0){
                foreach($reslut as $key => $val){
					switch($n){
						case 0 :$econ_type = "试用";break;
						case 1 :$econ_type = "转正";break;
						case 2 :$econ_type = "升迁";break;
						case 3 :$econ_type = "续约";break;
						case 4 :$econ_type = "离职";break;
					}
					
                    echo '<tr>
                    <td scope="col">'.$val['emp_lastname'].$val['emp_firstname'].'</td>
                    <td scope="col">'.$val['employee_id'].'</td>
                    <td scope="col">'.$val['econ_extend_start_date'].'</td>
                    <td scope="col">'.$val['econ_extend_end_date'].'</td>
					<td scope="col">'.$econ_type.'</td>
                    </tr>';
                }
            }else{
                echo "<tr><td  colspan=\"9\" style=\"color:red;text-align:center;padding:10px;\">当前合同提醒信息</td></tr>";
            }
            ?>
        </tbody>
       </table>

  </div><div class="bottom"><div class="left"></div><div class="right"></div><div class="middle"></div></div></div>
</div>



</body>
</html>
